package com.songcan.oauth.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.songcan.model.oauth.SysRole;
import com.songcan.oauth.vo.RoleVO;

public interface SysRoleService extends IService<SysRole> {

    void  addRole(String name,String roleCode,String roleDesc,String... menuIds);

    void  updateRole(Long roleId,String name,String roleCode,String roleDesc,String... menuIds);

    RoleVO selectByDetail(Long id);

    IPage<SysRole> selectByRolePage(Page page, String name);
}
